package com.chatroomdemo.service;

import com.chatroomdemo.mapper.FriendMapper;
import com.chatroomdemo.model.Friend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendService {

    @Autowired
    private FriendMapper friendMapper;
    public List<Friend> getFriendList(Integer userId){
        return friendMapper.selectFriendList(userId);
    }
}
